package min.diary.client.editor;

import min.diary.client.common.ui.TagEditor;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.datepicker.client.DatePicker;

public class Editor extends Composite {
	private FlexTable topPanel;
	
	private Label dateLabel;
	private Label titleLabel;
	private Label tagLabel;
	
	private DatePicker datePicker;
	private TextBox titleBox;
	private TagEditor tagEditor;
	
	public Editor() {
		dateLabel = new Label("Date");
		titleLabel = new Label("Title");
		tagLabel = new Label("Tags");
		
		datePicker = new DatePicker();
		titleBox = new TextBox();
		tagEditor = new TagEditor();
		
		topPanel = new FlexTable();		
		topPanel.setWidget(0, 0, dateLabel);
		topPanel.setWidget(0, 1, datePicker);
		topPanel.setWidget(1, 0, titleLabel);
		topPanel.setWidget(2, 0, tagLabel);
		
		initWidget(topPanel);
	}
}
